package com.javajun.endofterm.service;

import com.javajun.endofterm.common.CommonService;
import com.javajun.endofterm.entity.SysRole;
import com.javajun.endofterm.repository.SysRoleRepository;
import com.javajun.endofterm.repository.SysUserRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * Author: Xiong Limin
 * Date: 2020-12-06-12:17 上午
 */
@Service
public class SysRoleService extends CommonService<SysRole, Integer> {
    @Autowired
    private SysRoleRepository sysRoleRepository;

    public SysRole findByName(String name) {
        return sysRoleRepository.findByName(name);
    }
}
